/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bu.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.bu.dao.BuOrderCpDao;
import com.thinkgem.jeesite.modules.bu.entity.BuOrderCp;

/**
 * 主子表生成Service
 * @author ThinkGem
 * @version 2018-08-26
 */
@Service
@Transactional(readOnly = true)
public class BuOrderCpService extends CrudService<BuOrderCpDao, BuOrderCp> implements IBuOrderCpService{

	@Resource
	private BuOrderCpDao buOrderCpDao;
	
	public BuOrderCp get(String id) {
		BuOrderCp buOrderCp = super.get(id);
		return buOrderCp;
	}
	
	public List<BuOrderCp> findList(BuOrderCp buOrderCp) {
		return super.findList(buOrderCp);
	}
	
	public Page<BuOrderCp> findPage(Page<BuOrderCp> page, BuOrderCp buOrderCp) {
		return super.findPage(page, buOrderCp);
	}
	
	@Transactional(readOnly = false)
	public void save(BuOrderCp buOrderCp) {
		super.save(buOrderCp);
	}
	
	@Transactional(readOnly = false)
	public void delete(BuOrderCp buOrderCp) {
		super.delete(buOrderCp);
	}

	@Override
	public List<BuOrderCp> findCpList() {
		
		return null;
	}

	public Page<BuOrderCp> findCpPage(Page<BuOrderCp> page, BuOrderCp buOrderCp) {
		return super.findPage(page, buOrderCp);
	}
	
}